package main

import "fmt"

type Person struct {
	id   int
	name string
	age  int
}
type Student struct {
	Person
	score float64
}

func main() {
	var stu Student = Student{Person{1, "2", 3}, 34.6}
	fmt.Println(stu)
	fmt.Println(stu.name)
	fmt.Println(stu.Person.id)
	fmt.Println(stu.Person.name)
}
